<html>
<head>
		<meta name="layout" content="main" />
</head>

<body>
      	
      	
      	<h2>Project Details</h2>
      	
      	<g:link controller="project" action="projectDisplay" >${project?.name}</g:link> <br/><br/>
 		
 		${project?.description} <br/><br/>
 		
 		Source Code can be found at ${project?.sourceLocation} <br/><br/>
 		
 		
  <table id="projectTable" width ="1000">
  	    <tbody>
  		<tr align=left>
  			<th width ="150">Tag</th>
  			<th width ="650">Usage</th>
  			<th width ="250">Expertise Level Needed</th>
  		</tr>
	 	<g:each var="technology" in="${project?.technologies}">
	   		<tr>
		 		<td >
					    <g:link controller="tag" action="tagDisplay" id="${technology?.tag?.id}">
					   		${technology?.tag?.name}
					    </g:link> 
				</td>
				
				<td >${technology?.description}</td>
				<td>${technology?.expertiseLevel}</td>
				 			 
	   		</tr>
	   	</g:each>
       <tr>
	      	<h4> Add TAG</h4>
	   </tr>
	  
   		<g:form action="addTag" id="${project?.id}">
  		 <tr>
  		 	<td>
	  			<g:select name="tagName" from="${com.th.Tag.list()}"
	                     optionKey="name" optionValue="name" noSelection="${['null':'Please Choose...']}" />
	  		</td>
	  		<td>  
	  			<input type="text" name="description" value=""/>
	  		</td>
	  		<td>
	  			<g:select from="[1,2,3,4,5]" name="expertiseLevel"/>
	  		</td>
  		</tr>
  		<tr>
  			<td>
  				<input type="submit" value="Add Tag"></input>
  			</td>
  		</tr>
    	</g:form>
     </tbody>  
 </table>
 
 
</body>
</html>